package com.zhanghe.study.study_scala.basic

/**
 * 数据类型
 * @author zh
 * @date 2021/4/27 10:52
 */
object TestType {
  def main(args: Array[String]): Unit = {
    var age: Int = 10
    var sal: Double = 10.9
    var isPass: Boolean = true
    var score: Float = 70.9f
    var char1: Char = 'a'

    var int1 = 1
    var double1 = 2.0
    var double2 = double1 + int1
    int1 = 2.0.toInt
  }

}
